package com.huaxin.dss2.data.NewSmallStation.fbox;

import org.slf4j.LoggerFactory;

/**
 * @author : luqing
 * @date : 2019/1/25 15:24
 */

public class Slf4jLogger implements Logger{
    private org.slf4j.Logger log;

    public Slf4jLogger(String name) {
        log = LoggerFactory.getLogger(name);
    }

    public <T> Slf4jLogger(Class<T> clazz){
        log = LoggerFactory.getLogger(clazz);
    }

    @Override
    public void logInformation(String msg) {

    }

    @Override
    public void logWarning(String msg) {
        log.warn(msg);
    }

    @Override
    public void logError(String msg) {
        log.error(msg);
    }

    @Override
    public void logTrace(String msg) {
    }
}
